//
//  FiveViewController.m
//  标签控制器
//
//  Created by apple on 15/9/17.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "FiveViewController.h"

@interface FiveViewController ()

@end

@implementation FiveViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor brownColor];
 
    UIButton *but = [UIButton buttonWithType:UIButtonTypeSystem];
    
    [but addTarget:self action:@selector(didAbc:) forControlEvents:UIControlEventTouchUpInside];
    but.frame = CGRectMake(30, 40, 100, 50);
    
    [but setTitle:@"回到第一页" forState:UIControlStateNormal];
    
    [self.view addSubview:but];
    
}

- (void)didAbc:(UIButton *)sender
{
    self.tabBarController.selectedIndex = 0;
}

@end
